<?php

defined('SYSPATH') or die('Access error!');




//ajax
Route::set('trade/ajax', 'trade/ajax(/<action>(/<id>))', array('id' => '\d+'))
        ->defaults(array(
            'directory' => 'trade',
            'controller' => 'ajax',
            'action' => 'category_template'
        ));


Route::set('trade', 'trade(/<action>(/<id>))', array('id' => '\d+'))
        ->defaults(array(
            'controller' => 'trade',
        ));